{extend name="Base/common" /}
{block name="content"}
<!-- BEGIN PAGE -->

<div class="page-content" style="padding-top: 10px;">

    <div class="container-fluid">
        <!-- 面包屑开始-->
        <div class="row-fluid">
            <div class="span12">

                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title">
                    认证列表
                </h3>
                <ul class="breadcrumb">
                    <li>
                        <a href="/ops/area/index">列表</a>
                        <i class="icon-angle-right"></i>
                    </li>
                    <li>
                        认证列表
                    </li>

                </ul>
                <!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
        <!-- 面包屑结束 -->

        <!-- 带全选的表格开始 -->
        <div class="row-fluid">

            <div class="span12">

                <!-- BEGIN SAMPLE TABLE PORTLET-->

                <div class="portlet">

                    <div class="portlet-title">

                        <div class="caption"><i class="icon-reorder"></i>列表</div>

                        <!-- 表格内容整体操作结束 -->

                    </div>

                    <div class="portlet-body no-more-tables">

                        <table class="table-bordered table-striped table-condensed cf" style="text-align: center;">

                            <thead class="cf">

                            <tr>
                                <th>Id</th>
                                <th>用户ID</th>
                                <th>姓名</th>
                                <th>头像</th>

                                <th>手机号</th>
                                <th>微信号</th>
                                <th>服务类型</th>
                                <th>备注</th>
                                <th>地址</th>
                                <th>状态</th>

                                <th>操作</th>

                            </tr>

                            </thead>

                            <tbody>

                            {volist name="list" id="vo"}
                            <tr class="">

                                <td>{$vo.id}</td>
                                <td>{$vo.customer_id}</td>

                                <td>{$vo.name}</td>
                                <td><img src="{$vo.avatar}" style="width: 100px"></td>
                                <td>{$vo.mobile}</td>
                                <td>{$vo.wx_number}</td>
                                <td>{$vo.service}</td>
                                <td>{$vo.remark}</td>
                                <td>{$vo.address}</td>
                                <td>
                                    {switch name="$vo.status" }
                                    {case value="1"}
                                    <span style="color: #7ab1f3">未申请</span>
                                    {/case}
                                    {case value="2"}
                                    <span style="color: #666666;">审核中</span>
                                    {/case}
                                    {case value="3"}
                                    <span style="color: green">认证成功</span>
                                    {/case}
                                    {case value="4"}
                                    <span style="color: red">认证失败</span>
                                    {/case}
                                    {case value="5"}
                                    <span style="color: red">账号冻结</span>
                                    {/case}
                                    {/switch}

                                </td>
                                <td>
                                    <a href="javascript:;" onclick="edit2('{$vo.id}')" >编辑</a> |
                                    <a href="/ops/repair/detail?id={$vo.id}" >详情</a>
                                </td>

                            </tr>
                            {/volist}

                            </tbody>

                        </table>

                    </div>

                </div>
                {$list->render()}
                <!-- END SAMPLE TABLE PORTLET-->

            </div>
        </div>
        <!-- 带全选的表格结束btn-sort-edit -->

    </div>
</div>

<script>
    function edit2(id) {
        layui.use('layer', function(){
            var open = layer.open({
                type: 2,
                area: ["900px", "400px"],
                content: '/ops/repair/edit?id='+id //这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['http://sentsin.com', 'no']
            });

        });
    }

</script>
<!-- END PAGE -->
{/block}